package com.creatapark.mapper;

import com.creatapark.entity.ParkInfo;

import org.apache.ibatis.annotations.*;

/**
 * ParkInfoMapper
 *
 * @author Bruce01.fan
 * @date 2017/7/17
 */
@Mapper
public interface ParkInfoMapper {

    @Results({
            @Result(property = "parkId",column = "park_id"),
            @Result(property = "parkName",column = "park_name"),
            @Result(property = "parkType",column = "park_type"),
            @Result(property = "parkLocation",column = "park_location"),
            @Result(property = "parkCapacity",column = "park_capacity"),
            @Result(property = "status",column = "status")
    })

    @Select("SELECT * FROM T_PARK_INFO WHERE park_id=#{parkId}")
    ParkInfo getById(@Param("parkId") Long parkId);

}
